package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YS_GridCol", catalog="Id")
public class YsGridCol extends BaseEntity<YsGridCol> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="GridId", nameJava="gridId", typeDataBase="bigint")
	private Long gridId;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="SortNo", nameJava="sortNo", typeDataBase="int")
	private Integer sortNo;
	@YsField(nameDataBase="FrontType", nameJava="frontType", typeDataBase="varchar")
	private String frontType;
	@YsField(nameDataBase="FrontEdit", nameJava="frontEdit", typeDataBase="tinyint")
	private Integer frontEdit;
	@YsField(nameDataBase="FrontWidth", nameJava="frontWidth", typeDataBase="int")
	private Integer frontWidth;
	@YsField(nameDataBase="FrontAlign", nameJava="frontAlign", typeDataBase="tinyint")
	private Integer frontAlign;
	@YsField(nameDataBase="FrontShow", nameJava="frontShow", typeDataBase="tinyint")
	private Integer frontShow;
	@YsField(nameDataBase="AppFrontWidth", nameJava="appFrontWidth", typeDataBase="int")
	private Integer appFrontWidth;
	@YsField(nameDataBase="AppFrontAlign", nameJava="appFrontAlign", typeDataBase="tinyint")
	private Integer appFrontAlign;
	@YsField(nameDataBase="AppFrontShow", nameJava="appFrontShow", typeDataBase="tinyint")
	private Integer appFrontShow;
	@YsField(nameDataBase="AppFrontType", nameJava="appFrontType", typeDataBase="varchar")
	private String appFrontType;
	@YsField(nameDataBase="DictKeyBase", nameJava="dictKeyBase", typeDataBase="varchar")
	private String dictKeyBase;
	@YsField(nameDataBase="ModalKey", nameJava="modalKey", typeDataBase="varchar")
	private String modalKey;
	@YsField(nameDataBase="ModalRelativeCode", nameJava="modalRelativeCode", typeDataBase="varchar")
	private String modalRelativeCode;
	@YsField(nameDataBase="ModalValueCode", nameJava="modalValueCode", typeDataBase="varchar")
	private String modalValueCode;
	@YsField(nameDataBase="MultyFileSourceType", nameJava="multyFileSourceType", typeDataBase="tinyint")
	private Integer multyFileSourceType;
	@YsField(nameDataBase="TplScript", nameJava="tplScript", typeDataBase="varchar")
	private String tplScript;
	@YsField(nameDataBase="IsRowspan", nameJava="isRowspan", typeDataBase="tinyint")
	private Integer isRowspan;
	@YsField(nameDataBase="TotalRow", nameJava="totalRow", typeDataBase="tinyint")
	private Integer totalRow;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YsGridCol setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getGridId() {
		return gridId;
	}
	public YsGridCol setGridId(Long gridId) {
		this.gridId = gridId;
		return this;
	}
	public String getName() {
		return name;
	}
	public YsGridCol setName(String name) {
		this.name = name;
		return this;
	}
	public String getCode() {
		return code;
	}
	public YsGridCol setCode(String code) {
		this.code = code;
		return this;
	}
	public Integer getSortNo() {
		return sortNo;
	}
	public YsGridCol setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}
	public String getFrontType() {
		return frontType;
	}
	public YsGridCol setFrontType(String frontType) {
		this.frontType = frontType;
		return this;
	}
	public Integer getFrontEdit() {
		return frontEdit;
	}
	public YsGridCol setFrontEdit(Integer frontEdit) {
		this.frontEdit = frontEdit;
		return this;
	}
	public Integer getFrontWidth() {
		return frontWidth;
	}
	public YsGridCol setFrontWidth(Integer frontWidth) {
		this.frontWidth = frontWidth;
		return this;
	}
	public Integer getFrontAlign() {
		return frontAlign;
	}
	public YsGridCol setFrontAlign(Integer frontAlign) {
		this.frontAlign = frontAlign;
		return this;
	}
	public Integer getFrontShow() {
		return frontShow;
	}
	public YsGridCol setFrontShow(Integer frontShow) {
		this.frontShow = frontShow;
		return this;
	}
	public Integer getAppFrontWidth() {
		return appFrontWidth;
	}
	public YsGridCol setAppFrontWidth(Integer appFrontWidth) {
		this.appFrontWidth = appFrontWidth;
		return this;
	}
	public Integer getAppFrontAlign() {
		return appFrontAlign;
	}
	public YsGridCol setAppFrontAlign(Integer appFrontAlign) {
		this.appFrontAlign = appFrontAlign;
		return this;
	}
	public Integer getAppFrontShow() {
		return appFrontShow;
	}
	public YsGridCol setAppFrontShow(Integer appFrontShow) {
		this.appFrontShow = appFrontShow;
		return this;
	}
	public String getAppFrontType() {
		return appFrontType;
	}
	public YsGridCol setAppFrontType(String appFrontType) {
		this.appFrontType = appFrontType;
		return this;
	}
	public String getDictKeyBase() {
		return dictKeyBase;
	}
	public YsGridCol setDictKeyBase(String dictKeyBase) {
		this.dictKeyBase = dictKeyBase;
		return this;
	}
	public String getModalKey() {
		return modalKey;
	}
	public YsGridCol setModalKey(String modalKey) {
		this.modalKey = modalKey;
		return this;
	}
	public String getModalRelativeCode() {
		return modalRelativeCode;
	}
	public YsGridCol setModalRelativeCode(String modalRelativeCode) {
		this.modalRelativeCode = modalRelativeCode;
		return this;
	}
	public String getModalValueCode() {
		return modalValueCode;
	}
	public YsGridCol setModalValueCode(String modalValueCode) {
		this.modalValueCode = modalValueCode;
		return this;
	}
	public Integer getMultyFileSourceType() {
		return multyFileSourceType;
	}
	public YsGridCol setMultyFileSourceType(Integer multyFileSourceType) {
		this.multyFileSourceType = multyFileSourceType;
		return this;
	}
	public String getTplScript() {
		return tplScript;
	}
	public YsGridCol setTplScript(String tplScript) {
		this.tplScript = tplScript;
		return this;
	}
	public Integer getIsRowspan() {
		return isRowspan;
	}
	public YsGridCol setIsRowspan(Integer isRowspan) {
		this.isRowspan = isRowspan;
		return this;
	}
	public Integer getTotalRow() {
		return totalRow;
	}
	public YsGridCol setTotalRow(Integer totalRow) {
		this.totalRow = totalRow;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsGridCol setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsGridCol setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsGridCol setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsGridCol ysGridCol(
		Long gridId,
		String name,
		String code,
		Integer sortNo,
		String frontType,
		Integer frontEdit,
		Integer frontWidth,
		Integer frontAlign,
		Integer frontShow,
		Integer appFrontWidth,
		Integer appFrontAlign,
		Integer appFrontShow,
		String appFrontType,
		String dictKeyBase,
		String modalKey,
		String modalRelativeCode,
		String modalValueCode,
		Integer multyFileSourceType,
		String tplScript,
		Integer isRowspan,
		Integer totalRow,
		Integer status
			) {
		YsGridCol entity = new YsGridCol();
		entity.setGridId(gridId);
		entity.setName(name);
		entity.setCode(code);
		entity.setSortNo(sortNo);
		entity.setFrontType(frontType);
		entity.setFrontEdit(frontEdit);
		entity.setFrontWidth(frontWidth);
		entity.setFrontAlign(frontAlign);
		entity.setFrontShow(frontShow);
		entity.setAppFrontWidth(appFrontWidth);
		entity.setAppFrontAlign(appFrontAlign);
		entity.setAppFrontShow(appFrontShow);
		entity.setAppFrontType(appFrontType);
		entity.setDictKeyBase(dictKeyBase);
		entity.setModalKey(modalKey);
		entity.setModalRelativeCode(modalRelativeCode);
		entity.setModalValueCode(modalValueCode);
		entity.setMultyFileSourceType(multyFileSourceType);
		entity.setTplScript(tplScript);
		entity.setIsRowspan(isRowspan);
		entity.setTotalRow(totalRow);
		entity.setStatus(status);
		return entity;
	}
}